package com.blueocean_health.care.management.domain.dto;

import java.util.Date;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;
import com.blueocean_health.care.management.em.OrderStatusEnum;
import com.blueocean_health.care.management.em.PayStatusEnum;
import com.blueocean_health.care.management.em.PayStatusUserEnum;
import com.blueocean_health.care.management.em.ServiceTypeEnum;
import com.blueocean_health.care.management.em.SexEnum;

public class AppSelectOrderInfoDto {
	private Integer id;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	private String orderId;
	private String sex;
	private String sexName;
	private String phone;
	private String contact;
	private String orderStatus;
	private String orderStatusName;
    private List<AppOrderDetailDto> orderDetail;
	private String payStatus;
	private String payStatusName;
//	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
//	private Date serviceBeginTime;
//	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
//	private Date serviceEndTime;
	private String day;  // 所有明细的总服务天数
	private String hospitalName;
	private String hospitalPhone;
	private String patientRemark;
	private String loginPhone;
	
	  public String getLoginPhone() {
		return loginPhone;
	}
	public void setLoginPhone(String loginPhone) {
		this.loginPhone = loginPhone;
	}
	public String getPatientRemark() {
		return patientRemark;
	}
	public void setPatientRemark(String patientRemark) {
		this.patientRemark = patientRemark;
	}
	private List<AppReceiptDetail> receiptDetail;
	  
	public List<AppReceiptDetail> getReceiptDetail() {
		return receiptDetail;
	}
	public void setReceiptDetail(List<AppReceiptDetail> receiptDetail) {
		this.receiptDetail = receiptDetail;
	}
	public List<AppOrderDetailDto> getOrderDetail() {
		return orderDetail;
	}
	public void setOrderDetail(List<AppOrderDetailDto> orderDetail) {
		this.orderDetail = orderDetail;
	}
	public String getPayStatus() {
		return payStatus;
	}
	public void setPayStatus(String payStatus) {
		this.payStatus = payStatus;
	}
	public String getPayStatusName() {
			return getPayStatus()==null||"0".equals(getPayStatus())?null:PayStatusUserEnum.valueOf("_"+getPayStatus()).getVal();
		}
	
	public void setPayStatusName(String payStatusName) {
		this.payStatusName = payStatusName;
	}
	public String getHospitalPhone() {
		return hospitalPhone;
	}
	public void setHospitalPhone(String hospitalPhone) {
		this.hospitalPhone = hospitalPhone;
	}
	private String patientName; //患者名称
	
	public String getPatientName() {
		return patientName;
	}
	public void setPatientName(String patientName) {
		this.patientName = patientName;
	}
	public String getHospitalName() {
		return hospitalName;
	}
	public void setHospitalName(String hospitalName) {
		this.hospitalName = hospitalName;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getSexName() {
		return getSex()==null?null:SexEnum.valueOf("_"+getSex()).getVal();
	}
	public void setSexName(String sexName) {
		this.sexName = sexName;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getContact() {
		return contact;
	}
	public void setContact(String contact) {
		this.contact = contact;
	}
	public String getOrderStatus() {
		return orderStatus;
	}
	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}
	public String getOrderStatusName() {
		return getOrderStatus()==null?null:OrderStatusEnum.valueOf("_"+getOrderStatus()).getVal();
	}
	public void setOrderStatusName(String orderStatusName) {
		this.orderStatusName = orderStatusName;
	}
	
//	public Date getServiceBeginTime() {
//		return serviceBeginTime;
//	}
//	public void setServiceBeginTime(Date serviceBeginTime) {
//		this.serviceBeginTime = serviceBeginTime;
//	}
//	public Date getServiceEndTime() {
//		return serviceEndTime;
//	}
//	public void setServiceEndTime(Date serviceEndTime) {
//		this.serviceEndTime = serviceEndTime;
//	}
	public String getDay() {
		return day;
	}
	public void setDay(String day) {
		this.day = day;
	}
	@Override
	public String toString() {
		return "AppSelectOrderInfoDto [id=" + id + ", createTime=" + createTime + ", orderId=" + orderId + ", sex="
				+ sex + ", sexName=" + sexName + ", phone=" + phone + ", contact=" + contact + ", orderStatus="
				+ orderStatus + ", orderStatusName=" + orderStatusName + ", orderDetail=" + orderDetail + ", payStatus="
				+ payStatus + ", payStatusName=" + payStatusName + ", day=" + day + ", hospitalName=" + hospitalName
				+ ", hospitalPhone=" + hospitalPhone + ", receiptDetail=" + receiptDetail + ", patientName="
				+ patientName + "]";
	}
	
	
}
